
package za.ac.cput.peter.SoftwareDesignPrincipals.OCP.OCPFixed.Impl;


public class Business implements CalculateLoan
{
    private int years;
    private double amount;

    public double getAmount() { return amount; }
    public void setAmount(double amount) { this.amount = amount; }

    public int getYears() { return years; }
    public void setYears(int years) {  this.years = years; }

    @Override
    public double loanAmount() { return( amount + (amount * 0.100)/years ); }        
}